package cn.sciento.farm.devicemanager.api.jsonrpc;

import cn.sciento.farm.devicemanager.dao.entity.DevInverter;
import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * 变频器
 */
@JsonRpcService("rpc/hardware.inverter")
public interface InverterJsonApi {


    ResponseMessage create(DevInverter inverter);

    ResponseMessage update(DevInverter inverter);

    ResponseMessage get(Long id);

    ResponseMessage list(Integer areaId);

    ResponseMessage config(DevInverter inverter);

    ResponseMessage control(Long id, Integer sw);

    ResponseMessage refresh(Long id);

    ResponseMessage delete(Long id);
}
